
Component({
    options: {
        multipleSlots: true, // 在组件定义时的选项中启用多slot支持
    },
    properties: {
        // 页面标题
        title: {
            type: String,
            value: ''
        },
        // 顶部返回按钮
        backButton: {
            type: Boolean,
            value: true
        },
        background: {
            type: String,
            value: ''
        },

        scrollView: {
            type: Boolean,
            value: true
        },
        
        footerBtn: {
            type: Array,
            value: [],
        },
        footerType: {
            type: String,
            value: 'BUTTON'
        }
    },
    data: {
    },
    observers: {
    },
    lifetimes: {
        attached() {
        },
    },
    methods: {
        onSubmit(e: any) {
            const { item, index }: any = e.detail;
            this.triggerEvent('onFooter', { item, index });
        }
    }
});